home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: Parent Power / The Sunday Times - Parent Power.iso / pc / help / bcd / mac / jh1.1 / javahelp / bin / jhwrap < prev   
Encoding:
Korn shell script  |  2002-05-29  |  573 b   |  28 lines

  1. #! /bin/ksh
  2. #
  3. # @(#)jhwrap 1.2 07/14/98
  4. #
  5. # Indirection point for using 1.1 or 1.2 commands
  6. # This version alwasys uses "java" from PATH
  7. #
  8. # First argument is CLASSPATH to use
  9. # Second argument is ClassName
  10. # Third optional argument is -jdk; if present it is just ignored
  11. # Remaining arguments are passed to the invocation
  12.  
  13. PRG=`whence $0` >/dev/null 2>&1
  14. JHHOME=`/usr/bin/dirname $PRG`/../..
  15. progname=`/usr/bin/basename $0`
  16.  
  17. KLASSPATH=$1:${CLASSPATH}
  18. shift
  19. KLASS=$1
  20. shift
  21.  
  22. export CLASSPATH; CLASSPATH=$KLASSPATH ;
  23. if [[ $1 == -jdk ]] ; then
  24.   shift ;
  25. fi
  26.  
  27. java $KLASS $@ ;
  28.